import { IsEmail, isNotEmpty, IsNotEmpty, IsString } from 'class-validator';
export class CreateUserDto {
  @IsString()
  @IsNotEmpty({ message: "Name is required" })
  name: string;

  @IsString()
  @IsNotEmpty({ message: "name is required" })
  @IsEmail()
  email: string;

  @IsString()
  @IsNotEmpty({ message: "password is required" })
  password: string;
}